var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.setPartner(1, 1540741, 80001601, 0);
            cm.setPartner(1, 1540736, 80001602, 0);
            cm.setPartner(1, 1540737, 80001635, 0);
            cm.setInGameDirectionMode(false, true, false);
            cm.updateInfoQuest(33213, "area=D3_Z57;x=3;y=2");
            cm.updateInfoQuest(33214, "ul=1e000");
            cm.openUI(254);
            cm.spawnMobLimit(8240086, 1, -350, 777, 26);
            cm.spawnMobLimit(8240089, 1, -350, 777, 26);
            cm.spawnMobLimit(8240087, 1, -350, 777, 26);
            cm.spawnMobLimit(8240088, 1, -350, 777, 26);
            cm.spawnMobLimit(8240086, 1, 50, 777, 26);
            cm.spawnMobLimit(8240089, 1, 50, 777, 26);
            cm.spawnMobLimit(8240087, 1, 50, 777, 26);
            cm.spawnMobLimit(8240088, 1, 50, 777, 26);
            cm.spawnMobLimit(8240086, 1, 450, 777, 26);
            cm.spawnMobLimit(8240089, 1, 450, 777, 26);
            cm.spawnMobLimit(8240087, 1, 450, 777, 26);
            cm.spawnMobLimit(8240088, 1, 450, 777, 26);
            cm.spawnMobLimit(8240086, 1, 850, 777, 26);
            cm.spawnMobLimit(8240089, 1, 850, 777, 26);
            cm.spawnMobLimit(8240087, 1, 850, 777, 26);
            cm.spawnMobLimit(8240088, 1, 850, 777, 26);
            cm.spawnMobLimit(8240086, 1, 1250, 777, 26);
            cm.spawnMobLimit(8240089, 1, 1250, 777, 26);
            cm.spawnMobLimit(8240087, 1, 1250, 777, 26);
            cm.spawnMobLimit(8240088, 1, 1250, 777, 26);
            cm.spawnMobLimit(8240088, 1, 1305, 777, 26);
            cm.spawnMobLimit(8240090, 1, -516, 777, 26);
            cm.spawnMobLimit(8240089, 1, -516, 777, 26);
            cm.spawnMobLimit(8240089, 1, -516, 777, 26);
            cm.spawnMobLimit(8240089, 1, -516, 777, 26);
            cm.spawnMobLimit(8240088, 1, -235, 777, 26);
            cm.spawnMobLimit(8240088, 1, -235, 777, 26);
            cm.spawnMobLimit(8240088, 1, -235, 777, 26);
            cm.spawnMobLimit(8240090, 1, -208, 777, 26);
            cm.spawnMobLimit(8240089, 1, -208, 777, 26);
            cm.spawnMobLimit(8240089, 1, -208, 777, 26);
            cm.spawnMobLimit(8240089, 1, -208, 777, 26);
            cm.spawnMobLimit(8240088, 1, -91, 777, 26);
            cm.spawnMobLimit(8240088, 1, -91, 777, 26);
            cm.spawnMobLimit(8240088, 1, -91, 777, 26);
            cm.spawnMobLimit(8240090, 1, 90, 777, 26);
            cm.spawnMobLimit(8240089, 1, 90, 777, 26);
            cm.spawnMobLimit(8240089, 1, 90, 777, 26);
            cm.spawnMobLimit(8240089, 1, 90, 777, 26);
            cm.spawnMobLimit(8240087, 1, 1304, 777, 26);
            cm.spawnMobLimit(8240090, 1, 73, 777, 26);
            cm.spawnMobLimit(8240089, 1, 73, 777, 26);
            cm.spawnMobLimit(8240089, 1, 73, 777, 26);
            cm.spawnMobLimit(8240089, 1, 73, 777, 26);
            cm.spawnMobLimit(8240088, 1, 111, 777, 26);
            cm.spawnMobLimit(8240088, 1, 111, 777, 26);
            cm.spawnMobLimit(8240088, 1, 111, 777, 26);
            cm.spawnMobLimit(8240089, 1, 1220, 777, 26);
            cm.spawnMobLimit(8240088, 1, -13, 777, 26);
            cm.spawnMobLimit(8240088, 1, -13, 777, 26);
            cm.spawnMobLimit(8240088, 1, -13, 777, 26);
            cm.spawnMobLimit(8240088, 1, 496, 777, 26);
            cm.spawnMobLimit(8240088, 1, 496, 777, 26);
            cm.spawnMobLimit(8240088, 1, 496, 777, 26);
            cm.spawnMobLimit(8240090, 1, 961, 777, 26);
            cm.spawnMobLimit(8240089, 1, 961, 777, 26);
            cm.spawnMobLimit(8240089, 1, 961, 777, 26);
            cm.spawnMobLimit(8240089, 1, 961, 777, 26);
            cm.spawnMobLimit(8240088, 1, 2220, 777, 26);
            cm.spawnMobLimit(8240089, 1, 2128, 777, 26);
            cm.spawnMobLimit(8240087, 1, 2535, 777, 26);
            cm.spawnMobLimit(8240086, 1, 1973, 777, 26);
            cm.spawnMobLimit(8240088, 1, 1529, 777, 26);
            cm.spawnMobLimit(8240090, 1, 2039, 777, 26);
            cm.spawnMobLimit(8240089, 1, 2039, 777, 26);
            cm.spawnMobLimit(8240089, 1, 2039, 777, 26);
            cm.spawnMobLimit(8240089, 1, 2039, 777, 26);
            cm.spawnMobLimit(8240088, 1, 2281, 777, 26);
            cm.spawnMobLimit(8240088, 1, 2281, 777, 26);
            cm.spawnMobLimit(8240088, 1, 2281, 777, 26);
            cm.spawnMobLimit(8240110, 1, 1818, 777, 26);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};